import request from '@/utils/request'

// 查询用户购买记录列表
export function listUserShopRecord(query) {
  return request({
    url: '/business/userShopRecord/list',
    method: 'get',
    params: query
  })
}

// 查询用户购买记录详细
export function getUserShopRecord(id) {
  return request({
    url: '/business/userShopRecord/' + id,
    method: 'get'
  })
}

// 新增用户购买记录
export function addUserShopRecord(data) {
  return request({
    url: '/business/userShopRecord',
    method: 'post',
    data: data
  })
}

// 修改用户购买记录
export function updateUserShopRecord(data) {
  return request({
    url: '/business/userShopRecord',
    method: 'put',
    data: data
  })
}

// 删除用户购买记录
export function delUserShopRecord(id) {
  return request({
    url: '/business/userShopRecord/' + id,
    method: 'delete'
  })
}
